package com.rensea.android.objs;

import java.io.Serializable;
import java.util.Date;

public class User  implements Serializable{
	private static final long serialVersionUID = 1L;
	private String location;
	private long followingCount = 0;
	private long id;
	private boolean userProtected = false;
	private long favouritesCount = 0;
	private String description;
	private String name;
	private String url;
	private Date createdAt;
	private String screenName;
	private String profileImageUrl;
	private String profileSmallImageUrl;
	private long followersCount = 0;
	private boolean following;

	public String getLocation() {
		return location;
	}

	public long getFollowingCount() {
		return followingCount;
	}

	public void setFollowingCount(long followingCount) {
		this.followingCount = followingCount;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public boolean isUserProtected() {
		return userProtected;
	}

	public void setUserProtected(boolean userProtected) {
		this.userProtected = userProtected;
	}

	public long getFavouritesCount() {
		return favouritesCount;
	}

	public void setFavouritesCount(long favouritesCount) {
		this.favouritesCount = favouritesCount;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getProfileImageUrl() {
		return profileImageUrl;
	}

	public void setProfileImageUrl(String profileImageUrl) {
		this.profileImageUrl = profileImageUrl;
		if(null!=profileImageUrl){
			this.profileSmallImageUrl = profileImageUrl.replace("120x120", "32x32");
		}else{
			profileSmallImageUrl = null;
		}
	}

	public long getFollowersCount() {
		return followersCount;
	}

	public void setFollowersCount(long followersCount) {
		this.followersCount = followersCount;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getProfileSmallImageUrl() {
		return profileSmallImageUrl;
	}

	public void setProfileSmallImageUrl(String profileSmallImageUrl) {
		this.profileSmallImageUrl = profileSmallImageUrl;
	}

	public boolean isFollowing() {
		return following;
	}

	public void setFollowing(boolean following) {
		this.following = following;
	}

}
